package com.charles.bigdata.mapreduce.order;

import java.io.IOException;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

// 泛型 k3 v3 k4 v4 四个数据的类型
public class OrderReducer extends Reducer<OrderBean, NullWritable, OrderBean, NullWritable> {

	@Override
	protected void reduce(OrderBean k3, Iterable<NullWritable> v3, Context context)
			throws IOException, InterruptedException {

		// 输出   k4   v4
		context.write(k3, NullWritable.get());
	}
}